﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace mysecondlib
{
    public interface interfaceTest
    {

    }
    public class parentTest : interfaceTest
    {
        public virtual void output()
        {
            Console.WriteLine("This is parentTest");
        }
    }
    public class Test1 : parentTest
    {
        public override void output()
        {
            //Console.WriteLine("This is Test1");
            MessageBox.Show("This is Test1");
        }
    }

    public class Test2 : parentTest
    {
        public override void output()
        {
            //Console.WriteLine("This is Test2");
            MessageBox.Show("This is Test2");
        }
    }
}
